package com.lnking.lnkingplace.model.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDate;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author zxq
 * @since 2022-08-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private String id;

    /**
     * 名字
     */
    @TableField("name")
    private String name;

    /**
     * 电话
     */
    @TableField("phone")
    private String phone;

    /**
     * 密码
     */
    @TableField("password")
    private String password;

    /**
     * 类型
     */
    @TableField("type")
    private String type;

    /**
     * 渠道,因为有多个单位使用，标识属于那个渠道的
     */
    @TableField("channel")
    private String channel;

    /**
     * 身份证号码
     */
    @TableField("id_card")
    private String idCard;

    /**
     * 性别
     */
    @TableField("sex")
    private String sex;

    /**
     * 籍贯
     */
    @TableField("native_place")
    private String nativePlace;

    /**
     * 现居地址
     */
    @TableField("address")
    private String address;

    /**
     * 入职时间
     */
    @TableField("entry_time")
    private LocalDate entryTime;

    @TableField("del_flag")
    private String delFlag;

    /**
     * 场所Id
     */
    @TableField("place_id")
    private String placeId;

    /**
     * 学历
     */
    @TableField("education")
    private String education;

    /**
     * 紧急联系人：联系方式
     */
    @TableField("urgent_name")
    private String urgentName;
    /**
     * 紧急联系人：联系方式
     */
    @TableField("urgent_phone")
    private String urgentPhone;

    /**
     * 有无重大疾病史
     */
    @TableField("disease")
    private String disease;

    /**
     *  证件
     */
    @TableField("photos")
    private String  photos;


    @ApiModelProperty(value = "创建时间")
    private LocalDateTime creatorTime;

    @ApiModelProperty("是否在岗")
    private String  onDuty;


    private String  userType;
    private String  qrcode;
}
